import http from '@/utils/http'

//查询文章根据文章ID
export function findArticleById(data) {
    return http.post(`/lzh/articleInfo/findArticleDetail/${data}`)
}

//分页查询文章列表
export function findArticlePage(data) {
    return http.post(`/lzh/articleInfo/findArticlePage`, data)
}

//查询每个分类的文章
export function findAllCategoryArticleList(data) {
    return http.post(`/lzh/articleInfo/findAllCategoryArticleList`, data)
}

//查询推荐文章
export function findRecommendArticle() {
    return http.post(`/lzh/articleInfo/findRecommendArticle`)
}

//添加文章
export function addArticle(data) {
    return http.post(`/lzh/articleInfo/addArticle`, data)
}

//更新文章
export function editArticle(data) {
    return http.post(`/lzh/articleInfo/editArticle`, data)
}

//点赞文章
export function likeArticle(data) {
    return http.post(`/lzh/articleInfo/likeArticle`, data)
}

//收藏文章
export function collectArticle(data) {
    return http.post(`/lzh/articleInfo/collectArticle`, data)
}

//查询该分类下的文章的所有标签
export function findTagListByCategory(data) {
    return http.post(`/lzh/articleInfo/findTagListByCategory`, data)
}
